using System.IO;
using Rosetta.Default;

namespace Rosetta.Tests.Mocks
{
    internal sealed class DynamicTextWriterOutput : Outputter
    {
        public DynamicTextWriterOutput()
            : base("DynamicTextWriterOutput")
        {
            Add<TextWriter, string>("Write", (writer, str) => writer.Write(str));
            Add<TextWriter, string>("WriteLine", (writer, str) => writer.WriteLine(str));
        }
    }
}